package org.cladwell.controller;


import lombok.extern.slf4j.Slf4j;
import org.cladwell.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import static jdk.nashorn.internal.runtime.regexp.joni.Config.log;

@Slf4j
@Controller
public class DemoController {
    @Autowired
    private DemoService sdad;

    @GetMapping("demo")
    public String queryid(){
        Integer one= 1;
        String queryname = sdad.queryname(one);
        System.out.println(queryname+"s");
        log.info("a");
        return  "hello";
    }
}
